package org.lovely.base.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * description:
 * </p>
 *
 * @author kaitong.wang@hand-china.com 2021/3/30 19:35 星期二
 */

@RestController
public class LoginController {
    @PostMapping("/vue-admin-template/user/login")
    public String login(){
        return   "{\"code\":20000,\"data\":{\"token\":\"admin-token\"}}";

    }

    @GetMapping("/vue-admin-template/user/info")
    public String info(){
        return   "{\"code\":20000,\"data\":{\"token\":\"admin-token\"}}";

    }

    @PostMapping("/vue-admin-template/user/logout")
    public String logout(){
        return   "{\"code\":20000,\"data\":{\"token\":\"admin-token\"}}";

    }
}
